package com.cskaoyan.mapper;


import com.cskaoyan.bean.bo.CouponDeleteBo;
import com.cskaoyan.bean.bo.CouponUpdateBo;
import com.cskaoyan.bean.param.BaseParam;
import com.cskaoyan.bean.po.CouponPo;
import com.cskaoyan.bean.po.CouponReadPo;
import com.cskaoyan.bean.vo.CouponListUserVo;
import com.cskaoyan.bean.vo.CouponReadVo;
import com.cskaoyan.bean.vo.CouponVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: 陈慧颖
 * @time: Created by chy on 2022/6/4 15:57
 */
public interface CouponMapper {
    List<CouponVo> listAllCoupon(@Param("baseParam") BaseParam baseParam ,String name  ,Integer type, Integer status);

    int queryAllCount();

    int create(@Param("couponPo") CouponPo couponPo);

    int updateOneCoupon(@Param("couponPo") CouponPo couponPo);

    int deleteOne(@Param("couponDeleteBo") CouponDeleteBo couponDeleteBo);

    CouponListUserVo listuserByCouponId(@Param("baseParam") BaseParam baseParam, @Param("id") Integer couponId);

    CouponReadPo readCouponById(Integer id);
}
